package adminController

import (
	"gin/chibuda/app/admin/adminService"
	"gin/chibuda/app/utils"
	"github.com/gin-gonic/gin"
)

func ArticleList(c *gin.Context){
	data:=utils.Input(c)
	r := adminService.ArticleList(data)
	c.JSON( r.HttpCode, r.Rs)
}

func ArticleEdit(c *gin.Context){
	data := utils.Input(c)
	r := adminService.ArticleEdit(data)
	c.JSON( r.HttpCode, r.Rs)
}

func ArticleDel(c *gin.Context){
	data:=utils.Input(c)
	r := adminService.ArticleDel(data)
	c.JSON( r.HttpCode, r.Rs)
}